package com.sumainfor.pc.market.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.common.utlis.Pager;
import com.sumainfor.pc.market.service.HouCaiWuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * @author Meng
 * @ClassName WatGasEleController
 * @date 2020/3/18 13:56
 * @description: TODO
 */
@Controller
@RequestMapping("/WatGasEle")
public class WatGasEleController {

    @Autowired
    HouCaiWuService houCaiWuService;



    /**
     * 公共事业费毛利表统计
     * @param params
     * @param pager
     * @return
     */
    @ResponseBody
    @PostMapping("/getGEWlist")
    public JsonResult getGEWlist(@RequestBody Map<String,Object> params, Pager pager){

        return houCaiWuService.getGEWlist(params,pager);
    }

    /**
     * 租金收入毛利表统计
     */

    @ResponseBody
    @PostMapping("/getRoomOutlist")
    public JsonResult getRoomOutlist(@RequestBody Map<String,Object> params, Pager pager){

        return houCaiWuService.getRoomOutlist(params,pager);
    }






}
